home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 16 code / CollaboDraw / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-24  |  1.9 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------------------
  2.  *
  3.  * Simple Sample PowerTalk Application Framework
  4.  *
  5.  * ©1991-1993 Apple Computer
  6.  *
  7.  -------------------------------------------------------------------------------------*/
  8. /*
  9.  * globals.c -- repository for global variables
  10.  *
  11.  * change history:
  12.  *
  13.  * SJF        08/23/93        1.0f1        update to final headers, fix comments
  14.  * SJF        04/21/93        1.0b2        update to b2
  15.  * SJF        03/01/93        1.0b1        added digital sigPowerTalknatures
  16.  * SJF        02/09/93        1.0b1        update to b1
  17.  * SJF        10/13/92        1.0d4        update to a11
  18.  * SJF        09/09/92        1.0d3        update to a9
  19.  * SJF        05/07/92        1.0d2        update to a6
  20.  * SJF        11/06/91        1.0d1        initial coding
  21.  *
  22.  */
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27.  
  28. #ifndef __QUICKDRAW__
  29. #include <QuickDraw.h>
  30. #endif
  31.  
  32. #include "const.h"
  33. #include "mytypes.h"
  34.  
  35. /* configuration flags */
  36.  
  37. Boolean    gHasWaitNextEvent;        // true if we have waitnextevent available
  38. Boolean    gHasStandardMail;        // set if the PowerTalk Standard Mail Package is available
  39. Boolean    gHasDigiSign;            // set if the PowerTalk Digital Signature Package is available
  40.  
  41. /* action flags */
  42.  
  43. Boolean    gDone;                    // application should terminate when set
  44. Boolean    gInBackground;            // true if application is in the background
  45. Boolean    gMenusDirty;            // true if the menu bar needs re-drawing
  46.  
  47. /* global values */
  48.  
  49. short     gCurrentShape;            // shape to draw with
  50. Cursor    gPencilCursor;            // pencil cursor for drawing
  51. Cursor    gWatchCursor;            // watch cursor for waiting
  52. RgnHandle gCursorRgn;            // cursor change region for WaitNextEvent
  53. long    gNextWindowToMake;        // next window #
  54.  
  55. Boolean gHasCopyWindow;            // copy window visible?
  56. Boolean    gCanUndo;                // true if we can undo
  57. Boolean    gHasUndo;                // true if we just did an undo
  58. UndoData gUndoCommand;            // undo command data
  59.  
  60. Boolean    gShowSigners;            // true if we want to show signers
  61.  
  62. MyPreferences gPreferences;        // preferences for app